//
//  ViewController.m
//  10506、简单加法计算器
//
//  Created by student on 16/2/19.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)btnPressed:(id)sender {
    float result=[self.textfile1.text floatValue]+[self.textFild2.text floatValue];
    self.sumLabel.text=[NSString stringWithFormat:@"%.2f",result];
    
}
@end
